for i in range(1,10,2):#1是起始位置，10是结束边界，2是增长的步长
    print(i)


import numpy as np 
#np.random.seed(0) # 设置随机数种子 
x1 = np.random.randint(10, size=6) # 一维数组 
x2 = np.random.randint(10, size=(3, 4)) # 二维数组 
x3 = np.random.randint(10, size=(3, 4, 5)) # 三维数组
x5 =np.random.randint(10,size=(2,2,4,5,3)) # 五维数组
np.array([range(i, i + 3) for i in [2, 4, 6]]) 
np.random.random((3, 3)) 


#np.linspace()函数用于在指定的间隔内返回均匀间隔的数字。
theta = np.linspace(0, np.pi, 3) #定义一个角度数组
#进行三角函数计算
print("theta = ", theta)
print("sin(theta) = ", np.sin(theta))
print("cos(theta) = ", np.cos(theta))
print("tan(theta) = ", np.tan(theta)) 



x = np.arange(1,10,2)
y = np.empty(5,dtype=int)
np.multiply(x, 10, out=y)
print(y) 

import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0, 10, 100)
plt.plot(x, np.sin(x))
plt.plot(x, np.cos(x))
plt.show()



l = []
for i in range(3):
    x = int(input('integer:\n'))
    l.append(x)
l.sort()
print(l)



import torch as tt
print(tt.__version__)


import tensorflow as tf
print (tf.__version__)


import tensorflow as tf
a = tf.add(3, 5)
sess = tf.Session()
print(sess.run(a))  
sess.close()